import request from '@/utils/request'

export function getList(params?: any) {
  return request({
    url: '/area/getList',
    method: 'get',
    params,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/area/doEdit',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/area/doDelete',
    method: 'post',
    data,
  })
}

export function cityList(data: any) {
  return request({
    url: '/area/cityList',
    method: 'post',
    data,
  })
}

export function countyList(data: any) {
  return request({
    url: '/area/countyList',
    method: 'post',
    data,
  })
}

export function getEdit(data: any) {
  return request({
    url: '/area/getEdit',
    method: 'post',
    data,
  })
}

export function cityEdit(data: any) {
  return request({
    url: '/area/cityEdit',
    method: 'post',
    data,
  })
}
export function countyEdit(data: any) {
  return request({
    url: '/area/countyEdit',
    method: 'post',
    data,
  })
}
